﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="BulkUpload.aspx.cs" Inherits="Ebiz.BulkUpload" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        #tblForm > tbody > tr > td{
        text-align:left;
    }
    .tdDot{text-align:center;width:6px;table-layout:fixed;}
    </style>
    <script src="js/bulkupload.js" type="text/javascript"></script>
    <script type="text/javascript">
        var cbDistributor = "<%= cbDistributor.ClientID %>";
        var txtDistributor = "<%= txtDistributor.ClientID %>";
        var hidDistributor = "<%= hidDistributor.ClientID %>";
        var txtAppList = "<%= txtAppList.ClientID %>";
        var btnUpload = "<%= btnUpload.ClientID %>";
        var txtCLNumber = "<%=txtCLNumber.ClientID %>";
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHolder" runat="server">
    <h3>Bulk Upload</h3>
    <form name="Form1" id="Form1" runat="server" enctype="multipart/form-data" method="post">
        <table id="tblForm" align="center" cellpadding="6" cellspacing="0" 
            style="font-size: 12px; font-family: Arial; width:100%">
            <tbody>
                <tr>
                    <td style="table-layout:fixed;width:170px;height:30px;">CL Number</td>
                    <td class="tdDot">:</td>
                    <td style="font-weight:bold;">
                        <asp:TextBox ID="txtCLNumber" runat="server" Width="104px" BackColor="#FFCCFF" 
                            ReadOnly="false">AZI/HOS/16/</asp:TextBox>
                        <asp:DropDownList ID="cbDistributor" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td style="table-layout:fixed;width:170px;height:30px;">Distributor</td>
                    <td class="tdDot">:</td>
                    <td style="font-weight:bold;">
                        <asp:TextBox ID="txtDistributor" runat="server" Width="300px" BackColor="#FFCCFF" 
                            ReadOnly="True">Text</asp:TextBox>
                        <asp:HiddenField ID="hidDistributor" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td style="table-layout:fixed;width:170px;height:30px;">Upload File</td>
                    <td class="tdDot">:</td>
                    <td style="font-weight:bold;">
                        <asp:FileUpload ID="fileCL" runat="server" Width="218px" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="fileCL" ErrorMessage="File is required" 
                            ValidationGroup="BulkME">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr><td colspan="3" style="font-style:italic;color:Green;">Accepted File Formats: xls, xlsx</td></tr>
                <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
                <tr>
                    <td valign="top" style="table-layout:fixed;width:170px;height:30px;">Approval Process</td>
                    <td valign="top" class="tdDot">:</td>
                    <td style="font-weight:bold;" rowspan="2" valign="top">
                        <div id="divApproval"></div>
                        <span id="spnAppStat" style="color:Red;">&nbsp;</span>
                    </td>
                </tr>
                <tr><td colspan="3">
                    <asp:HiddenField ID="txtAppList" runat="server" />
                </td></tr>
                <tr><td colspan="3">&nbsp;</td></tr>
                <tr><td colspan="3">&nbsp;</td></tr>
                <tr><td>&nbsp;</td><td>&nbsp;</td><td>
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                        ValidationGroup="BulkME" />
                    </td></tr>
                <tr><td>&nbsp;</td><td>&nbsp;</td>
                    <td>
                        <asp:Button ID="btnUpload" runat="server" Text="Upload CL" 
                            ValidationGroup="BulkME" />
                    </td>
                </tr>
                <tr><td colspan="3">
                    <%= strWarning %>
                </td></tr>
            </tbody>
        </table>
    </form>
</asp:Content>
